package com.ruoyi.qualityControl.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum QcTimeExamineReceiveSheetEnum
{
    collectDate("collectDate", "统计日期"),
    networkName("networkName", "所属网点"),
    contractArea("contractAreaName", "承包区"),
    orderNum("orderNum", "订单揽收总量"),
    pickupTimelyNum("pickupTimelyNum", "及时揽收量"),
    pickupTimelyRate("pickupTimelyRate", "揽收及时率"),
    pickupNotTimelyNum("pickupNotTimelyNum", "未及时揽收量"),
    pickupNotTimelyRate("pickupNotTimelyRate", "未揽收及时率"),
    pickupCostAvg("pickupCostAvg", "揽收平均用时"),
    pickupBeforePlaceOrderNum("pickupBeforePlaceOrderNum", "先揽后下单量");
//    deliveryLateSign("deliveryLateSign", "派件晚于签收量"),
//    noAccuracyRate("noAccuracyRate", "不准确率"),
//    arrAfterSignCount("arrAfterSignCount", "到件晚于签收量"),
//    arrIssuePerStr("arrIssuePerStr", "到件不准确率");

    private final String code;
    private final String info;

    QcTimeExamineReceiveSheetEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (QcTimeExamineReceiveSheetEnum value : QcTimeExamineReceiveSheetEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
